package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("user")
public class Admin extends MyPage implements Serializable {

    //主键
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    //TableField 非主键的注解 ，定义的属性和列名的映射关系
    @TableField(value = "name")
    private String Name;

    @TableField(value = "username")
    private String userName;

    @TableField(value = "password")
    private String passWord;

    @TableField(value = "salt")
    private String Salt;


}
